<template>
  <view>
    <!-- 未登录 -->
    <my-login v-if="!token"></my-login>
    <!-- 已登录 -->
    <my-userinfo v-else></my-userinfo>
  </view>
</template>

<script>
  import tabbarBadge from '@/mixins/tabbar-badge.js'
  import {mapState} from 'vuex'
  export default {
    name: 'MyPage',
      mixins:[tabbarBadge],
    components:{
    },
    computed:{
      ...mapState('m_user',['token'])
    },
    data() {
      return {
        
      };
    },
    created(){
    },
    mounted(){
    },
    onLoad() {
    },
    methods:{
      
    }
  }
</script>

<style lang="scss">

</style>
